<!--
 * @Description: tabbar第1页 求职-首页 or 招聘-推荐
 * @Author: rcc
 * @Date: 2024-08-08 19:03:41
 * @FilePath: /rc-recruitment/pages/tab-page/tab-1/tab-1.vue
-->

<template>
	<!--	求职-首页-->
	<template v-if="isJob">
		<JobHome />
	</template>

	<!--	招聘-推荐-->
	<template v-else>
		<HiringSuggested />
	</template>
</template>

<script lang="ts" setup>
	import { onLoad } from '@dcloudio/uni-app'

	import useTabbar from '@/hooks/use-tabbar.ts'
	import { useUserStore } from '@/stores/user.ts'

	import JobHome from '@/pages/tab-page/job-home/job-home.vue'
	import HiringSuggested from '@/pages/tab-page/hiring-suggested/hiring-suggested.vue'

	const { isJob } = useUserStore()
	const { initTabBar } = useTabbar()

	onLoad(() => {
		initTabBar()
	})
</script>

<style lang="scss" scoped>

</style>